Component({
    properties: {
        defaultChecks: {
            type: Array,
            value: []
        },
        dispatchTypeList: {
            type: Array,
            value: []
        }
    },
    data: {
        show: !1,
        checkBoxs: []
    },
    observers: {
        defaultChecks: function(t) {
            this.setData({
                checkBoxs: t || []
            });
        }
    },
    methods: {
        showPopup: function() {
            this.setData({
                show: !this.data.show
            });
        },
        changeType: function(t) {
            this.setData({
                checkBoxs: t.detail
            });
        },
        toggle: function(t) {
            var e = t.currentTarget.dataset.index;
            this.selectComponent(".checkboxes-".concat(e)).toggle();
        },
        confirmType: function() {
            this.showPopup(), this.triggerEvent("confirmType", this.data.checkBoxs);
        }
    }
});